package com.rceeslca.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rceeslca.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 系统用户
 * @author rceeslca
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("sys_user")
public class SysUserEntity extends BaseEntity {

    private static final long serialVersionUID = 4738474943376008438L;

    /**用户名**/
    private String username;

    /**密码**/
    private String password;

    /**姓名**/
    private String realName;

    /**头像**/
    private String headUrl;

    /**性别 0男 1女 2保密**/
    private Integer gender;

    /**邮箱**/
    private String email;

    /**手机号**/
    private String mobile;

    /**部门ID**/
    private Long deptId;

    /**专业ID**/
    private Long majorId;

    /**班级**/
    private String className;

    /**超级管理员 0否 1是**/
    private Integer superAdmin;

    /**状态 0停用 1正常*/
    private Integer status;

    /**更新者**/
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updater;

    /**更新时间**/
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

    /**部门名称**/
    @TableField(exist=false)
    private String deptName;

}
